<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<html>
<head>
<link rel="stylesheet" type="text/css" media="screen"
	href="<c:url value='/resources/css/coolblue.css' />" />
<title>Registration</title>
</head>
<body>
	<div id="content-wrap">

		<!-- content -->
		<div id="content" class="clearfix">
			<%@ include file="./common.jsp" %>
			<div id="main">
				<h2>New User Registration</h2>
				<form:form action="createUser.html" method="post"
					modelAttribute="userform" enctype="multipart/form-data">
					<form:errors path="*" element="div" />
					<table>
						<tr>
							<td><form:label path="firstName">First Name</form:label></td>
							<td><form:input path="firstName" /></td>
						</tr>
						<tr>
							<td><form:label path="lastName">Last Name</form:label></td>
							<td><form:input path="lastName" /></td>
						</tr>
						<tr>
							<td><form:label path="age">Age</form:label></td>
							<td><form:input path="age" /></td>
						</tr>
						<tr>
							<td><form:label path="userName">User Name</form:label></td>
							<td><form:input path="userName" /></td>
						</tr>
						<tr>
							<td><form:label path="password">Password</form:label></td>
							<td><form:input id="password" type="password"
									path="password" /></td>
						</tr>
						<tr>
							<td><form:label path="confirmPassword">Confirm Password</form:label></td>
							<td><form:input id="confirmPassword" type="password"
									path="confirmPassword" /></td>
						</tr>
						<tr>
							<td><form:label path="favoriteLocation">Base Location</form:label></td>
							<td><form:select path="favoriteLocation">
									<form:option value="0" label="Select an Option" />
									<form:options items="${locationList}" />
								</form:select></td>
						</tr>
						<tr>
							<td><form:label path="profilePic">Profile Picture</form:label></td>
							<td><form:input id="profilePic" type="file" path="profilePic"/></td>
						</tr>
						<tr>
							<td colspan="2"><input type="submit" value="Add User" /></td>
						</tr>
					</table>
				</form:form>
			</div>
		</div>
	</div>
</body>
</html>